import request from "../utils/request"

// 发布文章
export const publishArticle = (data,draft = false) => {
    return request({
        method: 'POST',
        url: '/publishArticle',
        params: {
            draft: draft    // 是否保存为草稿
        },
        data: data
    })
}
